<?php
session_start ();
// 判断用户是否已经登录
if (! isset ( $_SESSION ["userinfo"] ) and empty ( $_SESSION ["userinfo"] ["userid"] )) {
	session_unset ();
	session_destroy ();
	header ( "location:../index.php" );
	exit ();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../PersonalPhoto/Images/web_title.ico" rel="icon"
	type="image/x-icon" />
<title>管理页面</title>
<link href="./style/manage.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="manage_bg">
		<div class="h-user">
			<?php
			// 判断用户是否已经登录
			echo "欢迎 ".$_SESSION ["userinfo"] ["userid"]."  ";
			echo "<a href='../index.php?exit=1' name='logout' target='_self'>退出</a>";
			?>
			</div>
	</div>
	<div id="index_container">
		<!-- 左边一行，常用作菜单 -->
		<div class="c-menu">
			<div class="m-nav">
				<h2>管理员管理</h2>
				<ul>
					<li><a href="./afterAdmin.php" target="frm">添加管理员</a></li>
					<li><a href="./adminList.php" target="frm">管理员列表</a></li>
				</ul>
			</div>
			<div class="m-nav">
				<h2>会员管理</h2>
				<ul>
					<li><a href="./afterInfo.php" target="frm">添加会员</a></li>
					<li><a href="./infoList.php" target="frm">会员列表</a></li>
				</ul>
			</div>
		</div>
		<!-- 右边一行，常用作iframe嵌套框架 -->
		<div class="c-content">
			<iframe name="frm" frameborder="0" scrolling="auto"
				src="./infoList.php"></iframe>
		</div>
		<!-- 底部一行，常用与版权声明等信息 -->
		<div class="c-footer">
			&copy;版权归<a
				href="http://android.myapp.com/myapp/detail.htm?apkName=com.zhuifeng.love2048"
				target="_blank">追风</a>所有，违者必究
		</div>
	</div>
</body>
</html>
